home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Options"
- ClientHeight = 3675
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4620
- LinkTopic = "Form1"
- ScaleHeight = 3675
- ScaleWidth = 4620
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdOk
- Caption = "OK"
- Height = 375
- Left = 2040
- TabIndex = 3
- Top = 3240
- Width = 735
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 2880
- TabIndex = 2
- Top = 3240
- Width = 735
- End
- Begin VB.CommandButton cmdDef
- Caption = "Set as default"
- Height = 375
- Left = 3720
- TabIndex = 1
- Top = 3240
- Width = 735
- End
- Begin VB.Frame frmOpt
- Caption = "Options"
- Height = 3135
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 4575
- Begin VB.OptionButton PlayNo
- Caption = "No"
- Height = 255
- Left = 2280
- TabIndex = 5
- Top = 360
- Width = 855
- End
- Begin VB.OptionButton PlayYes
- Caption = "Yes"
- Height = 255
- Left = 1440
- TabIndex = 4
- Top = 360
- Width = 855
- End
- Begin VB.Label Label1
- Caption = "Repeat forever"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 360
- Width = 1215
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDef_Click()
- Dim CPlay As String
- ChDir App.Path
- Open "Options.dat" For Output As #1 ' Open file for output.
- If PlayYes = True Then
- CPlay = 0
- ElseIf PlayNo = True Then
- CPlay = 1
- End If
- Write #1, CPlay
- Close #1
- Unload Me
- End Sub
- Private Sub cmdOk_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- ChDir App.Path
- Open "Options.Dat" For Input Access Read As #1
- Input #1, CPlay
- Close #1
- End Sub
- Private Sub PlayNo_Click()
- txtPlay.Visible = True
- End Sub
- Private Sub PlayYes_Click()
- txtPlay.Visible = False
- End Sub
-